You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > Matrix.Diag Method
Dew Math for .NET
ContentsIndexHome
Example
var A: Matrix; D: Vector; begin A.SetIt(2,2,True,[1,1, 2,1, 1,2, 2,2]); D.SetIt(2, True,[2,2, 1,1]); A.Diag(D,0); // A becomes: // [2,2, 2,1] // [1,2, 1,1] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.